package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/18
*/
@Data
@Table(name = "tbl_member_family")
@NoArgsConstructor
@AllArgsConstructor
public class TblMemberFamily extends BaseEntity {
    /**
     * 添加小孩和添加亲属时为邀请人的id;分享小孩时为被分享人的id
     */
    @Column(name = "member_id")
    @ApiModelProperty("添加小孩和添加亲属时为邀请人的id;分享小孩时为被分享人的id")
    private String memberId;

    /**
     * 关联的亲属id(小孩id或者是被邀请人id)
     */
    @Column(name = "dependant_id")
    @ApiModelProperty("关联的亲属id(小孩id或者是被邀请人id)")
    private String dependantId;

    private Integer status;

    private String code;

    /**
     * 0:Child;1:Wife;2:Husband;3:Brother;4:Sister;5:Father;6:Mother;7:Son;8:Daughter;9:Domestic helper;10:Grandfather;11:Grandmother;12:Others
     */
    @ApiModelProperty("0:Child;1:Wife;2:Husband;3:Brother;4:Sister;5:Father;6:Mother;7:Son;8:Daughter;9:Domestic helper;10:Grandfather;11:Grandmother;12:Others")
    private Integer relationship;

    @Column(name = "invited_email")
    private String invitedEmail;

    /**
     * 邀请人id
     */
    @Column(name = "member_id_send_invitation")
    @ApiModelProperty("邀请人id")
    private String memberIdSendInvitation;

    /**
     * 分享小孩时对方的关系
     */
    @Column(name = "sharing_child_relationship")
    @ApiModelProperty("分享小孩时对方的关系")
    private Integer sharingChildRelationship;
}